<?php
/*	if(!Verify_Code()){
		exit('e1');
	}
	$name = $_POST['user'];
	$pwd = $_POST['pwd'];

	if(!$name || !$pwd){
		exit('e2');
	}
	$stat = false;
	if($name == 'admin'){
		if(md5($pwd) == md5('123')){
			$stat = true;
		}
	}else{
		$pdo = MyPdo::init();
		$sql = "select pwd from bmxx8_admin_user where name = ?";
		$res = $pdo->dql($sql,array($name),1);
		if(md5($pwd) == $res['pwd']){
			$stat = true;
		}
	}
	if($stat){
		setCookie('after_user',$name,time()+6000,'/');
		echo 'ok';
	}else{
		echo 'e2';
	}*/
